import { SysCustomWidgetType, OnlineFormEventType } from '@/common/staticDict/index';

const divider = {
  span: {
    name: '组件宽度',
    widgetType: SysCustomWidgetType.Slider,
    value: 12,
    min: 1,
    max: 24,
  },
  contentPosition: {
    name: '文案位置',
    widgetType: SysCustomWidgetType.Radio,
    value: 'center',
    dropdownList: [
      {
        id: 'left',
        name: '左对齐',
      },
      {
        id: 'center',
        name: '居中',
      },
      {
        id: 'right',
        name: '右对齐',
      },
    ],
  },
};

const dividerConfig = {
  widgetType: SysCustomWidgetType.Divider,
  icon: 'online-icon icon-divider',
  attribute: divider,
  allowEventList: [OnlineFormEventType.VISIBLE],
  supportBindTable: false,
  supportBindColumn: false,
};

export default dividerConfig;
